/// breedId : 1
/// name : "种类1"
/// imageUrl : "https://www.thesprucepets.com/thmb/0boc2vA7cgTbugzoEoqbdwkfpxs=/1500x0/filters:no_upscale():strip_icc():format(webp)/GettyImages-106465613-0f8331340ab3444fa45ce3063e4f153e.jpg"
/// createTime : "2024-03-07 15:44:20"
/// breedGroupId : null

class Breed {
  Breed({
    this.breedId,
    this.name,
    this.imageUrl,
    this.createTime,
    this.breedGroupId,
  });

  Breed.fromJson(dynamic json) {
    breedId = json['breedId'];
    name = json['name'];
    imageUrl = json['imageUrl'];
    createTime = json['createTime'];
    breedGroupId = json['breedGroupId'];
  }

  num? breedId;
  String? name;
  String? imageUrl;
  String? createTime;
  num? breedGroupId;

  Breed copyWith({
    num? breedId,
    String? name,
    String? imageUrl,
    String? createTime,
    num? breedGroupId,
  }) =>
      Breed(
        breedId: breedId ?? this.breedId,
        name: name ?? this.name,
        imageUrl: imageUrl ?? this.imageUrl,
        createTime: createTime ?? this.createTime,
        breedGroupId: breedGroupId ?? this.breedGroupId,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['breedId'] = breedId;
    map['name'] = name;
    map['imageUrl'] = imageUrl;
    map['createTime'] = createTime;
    map['breedGroupId'] = breedGroupId;
    return map;
  }
}
